package com.atguigu.gmall.payment.service;


import com.atguigu.gmall.model.enums.PaymentType;
import com.atguigu.gmall.model.order.OrderInfo;
import com.atguigu.gmall.model.payment.PaymentInfo;

import java.util.HashMap;

public interface PaymentService {

    void savePaymentInfo(OrderInfo orderInfo, String paymentType);

    /**
     * 根据第三方编号去查找paymentInfo
     * @param outTradeNo
     * @param paymentType
     * @return
     */
    PaymentInfo getPaymentInfo(String outTradeNo, String paymentType);

    void updatePaymentInfoStatus(String outTradeNo, String paymentType, HashMap<String, String> paramsMap);

    void updatePaymentInfoStatus(String outTradeNo, String paymentType, PaymentInfo paymentInfo);

    void closePaymentInfo(Long id);
}
